Optimal. Leaf size=162 \[ \frac {2 A \text {ArcTan}\left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {a+a \sec (c+d x)}}\right )}{a^{5/2} d}-\frac {(43 A-5 C) \text {ArcTan}\left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {2} \sqrt {a+a \sec (c+d x)}}\right )}{16 \sqrt {2} a^{5/2} d}-\frac {(A+C) \tan (c+d x)}{4 d (a+a \sec (c+d x))^{5/2}}-\frac {(11 A-5 C) \tan (c+d x)}{16 a d (a+a \sec (c+d x))^{3/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.18, antiderivative size = 162, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 6, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.222, Rules used = {4138, 4007,
4005, 3859, 209, 3880} \begin {gather*} -\frac {(43 A-5 C) \text {ArcTan}\left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {2} \sqrt {a \sec (c+d x)+a}}\right )}{16 \sqrt {2} a^{5/2} d}+\frac {2 A \text {ArcTan}\left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {a \sec (c+d x)+a}}\right )}{a^{5/2} d}-\frac {(11 A-5 C) \tan (c+d x)}{16 a d (a \sec (c+d x)+a)^{3/2}}-\frac {(A+C) \tan (c+d x)}{4 d (a \sec (c+d x)+a)^{5/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 209
Rule 3859
Rule 3880
Rule 4005
Rule 4007
Rule 4138
Rubi steps
\begin {align*} \int \frac {A+C \sec ^2(c+d x)}{(a+a \sec (c+d x))^{5/2}} \, dx &=-\frac {(A+C) \tan (c+d x)}{4 d (a+a \sec (c+d x))^{5/2}}-\frac {\int \frac {-4 a A+\frac {1}{2} a (3 A-5 C) \sec (c+d x)}{(a+a \sec (c+d x))^{3/2}} \, dx}{4 a^2}\\ &=-\frac {(A+C) \tan (c+d x)}{4 d (a+a \sec (c+d x))^{5/2}}-\frac {(11 A-5 C) \tan (c+d x)}{16 a d (a+a \sec (c+d x))^{3/2}}+\frac {\int \frac {8 a^2 A-\frac {1}{4} a^2 (11 A-5 C) \sec (c+d x)}{\sqrt {a+a \sec (c+d x)}} \, dx}{8 a^4}\\ &=-\frac {(A+C) \tan (c+d x)}{4 d (a+a \sec (c+d x))^{5/2}}-\frac {(11 A-5 C) \tan (c+d x)}{16 a d (a+a \sec (c+d x))^{3/2}}+\frac {A \int \sqrt {a+a \sec (c+d x)} \, dx}{a^3}-\frac {(43 A-5 C) \int \frac {\sec (c+d x)}{\sqrt {a+a \sec (c+d x)}} \, dx}{32 a^2}\\ &=-\frac {(A+C) \tan (c+d x)}{4 d (a+a \sec (c+d x))^{5/2}}-\frac {(11 A-5 C) \tan (c+d x)}{16 a d (a+a \sec (c+d x))^{3/2}}-\frac {(2 A) \text {Subst}\left (\int \frac {1}{a+x^2} \, dx,x,-\frac {a \tan (c+d x)}{\sqrt {a+a \sec (c+d x)}}\right )}{a^2 d}+\frac {(43 A-5 C) \text {Subst}\left (\int \frac {1}{2 a+x^2} \, dx,x,-\frac {a \tan (c+d x)}{\sqrt {a+a \sec (c+d x)}}\right )}{16 a^2 d}\\ &=\frac {2 A \tan ^{-1}\left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {a+a \sec (c+d x)}}\right )}{a^{5/2} d}-\frac {(43 A-5 C) \tan ^{-1}\left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {2} \sqrt {a+a \sec (c+d x)}}\right )}{16 \sqrt {2} a^{5/2} d}-\frac {(A+C) \tan (c+d x)}{4 d (a+a \sec (c+d x))^{5/2}}-\frac {(11 A-5 C) \tan (c+d x)}{16 a d (a+a \sec (c+d x))^{3/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 3.84, size = 153, normalized size = 0.94 \begin {gather*} \frac {-32 A \text {ArcTan}\left (\sqrt {-1+\sec (c+d x)}\right ) \sqrt {-1+\sec (c+d x)} \sin (c+d x)+\frac {(43 A-5 C) \text {ArcTan}\left (\frac {\sqrt {-1+\sec (c+d x)}}{\sqrt {2}}\right ) \sqrt {-1+\sec (c+d x)} \sin (c+d x)}{\sqrt {2}}+(11 A-5 C+(15 A-C) \cos (c+d x)) \tan ^3\left (\frac {1}{2} (c+d x)\right )}{16 a^2 d (-1+\cos (c+d x)) \sqrt {a (1+\sec (c+d x))}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(823\) vs.
\(2(137)=274\).
time = 13.07, size = 824, normalized size = 5.09
method | result | size |
default | \(\frac {\sqrt {\frac {a \left (1+\cos \left (d x +c \right )\right )}{\cos \left (d x +c \right )}}\, \left (-32 A \left (\cos ^{2}\left (d x +c \right )\right ) \sin \left (d x +c \right ) \arctanh \left (\frac {\sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \sin \left (d x +c \right ) \sqrt {2}}{2 \cos \left (d x +c \right )}\right ) \sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \sqrt {2}-43 A \left (\cos ^{2}\left (d x +c \right )\right ) \sin \left (d x +c \right ) \sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \ln \left (-\frac {-\sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \sin \left (d x +c \right )+\cos \left (d x +c \right )-1}{\sin \left (d x +c \right )}\right )-64 A \sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \arctanh \left (\frac {\sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \sin \left (d x +c \right ) \sqrt {2}}{2 \cos \left (d x +c \right )}\right ) \sin \left (d x +c \right ) \sqrt {2}\, \cos \left (d x +c \right )+5 C \left (\cos ^{2}\left (d x +c \right )\right ) \sin \left (d x +c \right ) \sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \ln \left (-\frac {-\sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \sin \left (d x +c \right )+\cos \left (d x +c \right )-1}{\sin \left (d x +c \right )}\right )-86 A \cos \left (d x +c \right ) \sin \left (d x +c \right ) \ln \left (-\frac {-\sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \sin \left (d x +c \right )+\cos \left (d x +c \right )-1}{\sin \left (d x +c \right )}\right ) \sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}-32 A \sqrt {2}\, \sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \arctanh \left (\frac {\sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \sin \left (d x +c \right ) \sqrt {2}}{2 \cos \left (d x +c \right )}\right ) \sin \left (d x +c \right )+10 C \cos \left (d x +c \right ) \sin \left (d x +c \right ) \ln \left (-\frac {-\sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \sin \left (d x +c \right )+\cos \left (d x +c \right )-1}{\sin \left (d x +c \right )}\right ) \sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}+30 A \left (\cos ^{3}\left (d x +c \right )\right )-43 A \sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \ln \left (-\frac {-\sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \sin \left (d x +c \right )+\cos \left (d x +c \right )-1}{\sin \left (d x +c \right )}\right ) \sin \left (d x +c \right )-2 C \left (\cos ^{3}\left (d x +c \right )\right )+5 C \sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \ln \left (-\frac {-\sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \sin \left (d x +c \right )+\cos \left (d x +c \right )-1}{\sin \left (d x +c \right )}\right ) \sin \left (d x +c \right )-8 A \left (\cos ^{2}\left (d x +c \right )\right )-8 C \left (\cos ^{2}\left (d x +c \right )\right )-22 A \cos \left (d x +c \right )+10 C \cos \left (d x +c \right )\right )}{32 d \left (1+\cos \left (d x +c \right )\right )^{2} \sin \left (d x +c \right ) a^{3}}\) | \(824\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 292 vs.
\(2 (137) = 274\).
time = 12.39, size = 670, normalized size = 4.14 \begin {gather*} \left [\frac {\sqrt {2} {\left ({\left (43 \, A - 5 \, C\right )} \cos \left (d x + c\right )^{3} + 3 \, {\left (43 \, A - 5 \, C\right )} \cos \left (d x + c\right )^{2} + 3 \, {\left (43 \, A - 5 \, C\right )} \cos \left (d x + c\right ) + 43 \, A - 5 \, C\right )} \sqrt {-a} \log \left (\frac {2 \, \sqrt {2} \sqrt {-a} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \cos \left (d x + c\right ) \sin \left (d x + c\right ) + 3 \, a \cos \left (d x + c\right )^{2} + 2 \, a \cos \left (d x + c\right ) - a}{\cos \left (d x + c\right )^{2} + 2 \, \cos \left (d x + c\right ) + 1}\right ) - 64 \, {\left (A \cos \left (d x + c\right )^{3} + 3 \, A \cos \left (d x + c\right )^{2} + 3 \, A \cos \left (d x + c\right ) + A\right )} \sqrt {-a} \log \left (\frac {2 \, a \cos \left (d x + c\right )^{2} + 2 \, \sqrt {-a} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \cos \left (d x + c\right ) \sin \left (d x + c\right ) + a \cos \left (d x + c\right ) - a}{\cos \left (d x + c\right ) + 1}\right ) - 4 \, {\left ({\left (15 \, A - C\right )} \cos \left (d x + c\right )^{2} + {\left (11 \, A - 5 \, C\right )} \cos \left (d x + c\right )\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sin \left (d x + c\right )}{64 \, {\left (a^{3} d \cos \left (d x + c\right )^{3} + 3 \, a^{3} d \cos \left (d x + c\right )^{2} + 3 \, a^{3} d \cos \left (d x + c\right ) + a^{3} d\right )}}, \frac {\sqrt {2} {\left ({\left (43 \, A - 5 \, C\right )} \cos \left (d x + c\right )^{3} + 3 \, {\left (43 \, A - 5 \, C\right )} \cos \left (d x + c\right )^{2} + 3 \, {\left (43 \, A - 5 \, C\right )} \cos \left (d x + c\right ) + 43 \, A - 5 \, C\right )} \sqrt {a} \arctan \left (\frac {\sqrt {2} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \cos \left (d x + c\right )}{\sqrt {a} \sin \left (d x + c\right )}\right ) - 64 \, {\left (A \cos \left (d x + c\right )^{3} + 3 \, A \cos \left (d x + c\right )^{2} + 3 \, A \cos \left (d x + c\right ) + A\right )} \sqrt {a} \arctan \left (\frac {\sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \cos \left (d x + c\right )}{\sqrt {a} \sin \left (d x + c\right )}\right ) - 2 \, {\left ({\left (15 \, A - C\right )} \cos \left (d x + c\right )^{2} + {\left (11 \, A - 5 \, C\right )} \cos \left (d x + c\right )\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sin \left (d x + c\right )}{32 \, {\left (a^{3} d \cos \left (d x + c\right )^{3} + 3 \, a^{3} d \cos \left (d x + c\right )^{2} + 3 \, a^{3} d \cos \left (d x + c\right ) + a^{3} d\right )}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {A + C \sec ^{2}{\left (c + d x \right )}}{\left (a \left (\sec {\left (c + d x \right )} + 1\right )\right )^{\frac {5}{2}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {A+\frac {C}{{\cos \left (c+d\,x\right )}^2}}{{\left (a+\frac {a}{\cos \left (c+d\,x\right )}\right )}^{5/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________